<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li><a ui-sref="main.funScenes.task.list" href="">任务管理</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
    <div class="panel panel-default">
        <!-- 头部 -->
        <div class="panel-heading font-bold">{{title}}
            <a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.funScenes.task.list"><i class="text-md fa fa-times text-muted"></i></a>
        </div>
        <!--表单-->
        <div class="panel-body">
            <form class="form-horizontal"  name="task_form" id="taskform">
                <input type="hidden" ng-model="record.taskId">
                <!--活动名称-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>活动名称:</label>
                    <div class="col-sm-6">
                        <select class="form-control" ng-model="record.activityId" style="color: black"
                                ng-options="d.id as d.activityName for d in activityList" id="activityId" name="activityId">
                            <option value="">--选择活动--</option>
                        </select>
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <!--活动开始时间
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label">活动起始时间:</label>
                        <div class="row">
                            <div class="col-sm-2">
                                <select class="form-control" ng-model="record.activityStarttime" style="color: black"
                                        ng-options="d.id as d.activityStarttime for d in activityList" disabled="disabled" id="activityStarttime" name="activityStarttime">
                                    <option value="">&#45;&#45;活动开始时间&#45;&#45;</option>
                                </select>
                            </div>

                            <div class="col-sm-2">
                                <select class="form-control" ng-model="record.activityEndtime" style="color: black"
                                        ng-options="d.id as d.activityEndtime for d in activityList" disabled="disabled" id="activityEndtime" name="activityEndtime">
                                    <option value="">&#45;&#45;活动结束时间&#45;&#45;</option>
                                </select>
                            </div>
                    </div>
                </div>-->
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--路线名称-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>路线名称:</label>
                    <div class="col-sm-6">
                        <select class="form-control" ng-model="record.routeId" style="color: black"
                                ng-options="d.id as d.routeName for d in routeList" id="routeId" name="routeId">
                            <option value="">--选择路线--</option>
                        </select>
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--任务名称-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>任务名称:</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" placeholder="请输入任务名称" ng-model="record.taskName" id="taskName" name="taskName">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <!--时间限制-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>时间限制:</label>
                    <div class="col-sm-6">
                        <input type="number" class="form-control" placeholder="请输入时间限制" ng-model="record.costTime" name="costTime" id="costTime">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <!--所属层级-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>所在层级:</label>
                    <div class="col-sm-6">
                        <input type="number" class="form-control" placeholder="请输入所属层级" ng-model="record.sort" id="sort" name="sort">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <!--任务描述-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>任务描述:</label>
                    <div class="col-sm-6">
                        <textarea rows="5" class="form-control" placeholder="请输入任务描述"ng-model="record.taskDesc" id="taskDesc" name="taskDesc">
                        </textarea>
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <!--核销者ID-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>核销者ID:</label>
                    <div class="col-sm-6">
                    <input type="number" class="form-control" placeholder="请输入核销者" ng-model="record.destroyBy" id="destroyBy" name="destroyBy">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <!--任务截止日期-->
                <!--<div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label">任务截止日期:</label>
                    <div class="col-sm-2">
                        <input type="text" id="finishTime" name="finishTime" ng-model="record.finishTime" placeholder="请选择任务截止日期" class="form-control" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss', start: laydate.now(0, 'YYYY-MM-DD hh:mm:ss')})"/>
                    </div>
                </div>-->
               <!-- <div class="line line-dashed b-b line-lg pull-in"></div>-->
                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-2" >
                        <button type="reset" class="btn btn-default w-xs">重置</button>
                        <button type="submit" class="btn btn-info w-xs m-l-xl" ng-disabled="isDisabled" >保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>